package com.ssy.lingxi.member.merchant.api.model.vo.inner.request;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;

/**
 *  会员权益积分消费VO-积分抵扣订单金额（不是积分订单）
 * @author ds
 * @date 2022/3/1
 * @version 2.0.0
 */
public class MemberFeignRightDeductionItemVO implements Serializable {

    private static final long serialVersionUID = -3133501148172802577L;
    /**
     * 卖方会员Id
     */
    @NotNull(message = "卖方的会员角色Id要大于0")
    @Positive(message = "卖方的会员角色Id要大于0")
    private Long upperMemberId;

    /**
     * 卖方会员角色Id
     */
    @NotNull(message = "卖方的会员角色Id要大于0")
    @Positive(message = "卖方的会员角色Id要大于0")
    private Long upperRoleId;

    /**
     * 订单编号（注意不是数据库的Id字段）
     */
    @NotBlank(message = "订单号不能为空")
    private String orderNo;

    /**
     * 消费的积分
     */
    @NotNull(message = "消费的积分要大于等于0")
    @PositiveOrZero(message = "消费的积分要大于等于0")
    private Integer usedPoint;

    public Long getUpperMemberId() {
        return upperMemberId;
    }

    public void setUpperMemberId(Long upperMemberId) {
        this.upperMemberId = upperMemberId;
    }

    public Long getUpperRoleId() {
        return upperRoleId;
    }

    public void setUpperRoleId(Long upperRoleId) {
        this.upperRoleId = upperRoleId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getUsedPoint() {
        return usedPoint;
    }

    public void setUsedPoint(Integer usedPoint) {
        this.usedPoint = usedPoint;
    }


}
